<html>
<head>
	<script type="text/javascript">
		var aJaxURL	= "server-side/report/charger.action.php";		//server side folder url
		var seoyURL	= "server-side/seoy/seoy.action.php";					//server side folder url
		var tName	= "example";											//table name
		var fName	= "add-edit-form";										//form name													
		
		$(document).ready(function () {   
			GetButtons("barcode_input", ""); 
			$("#barcode_input").focus();			
		});
		$(document).on("keydown", "#barcode_input", function (event) {
			if (event.keyCode == $.ui.keyCode.ENTER){
				LoadTable();
			    $("#barcode_input").val("");
				event.preventDefault();					//Clear Dialog Default <b>keypress<b> Event
	        }
		});
		
		function LoadTable(){
			//             tname, aJaxURL, action, count, data, hidden, length, sorting, sortMeth, total		
			GetDataTable(tName, aJaxURL, "get_list&barcode="+$("#barcode_input").val(), 3,'',0);
		}


	</script>
</head>
<body>    
    <div id="dt_example" class="ex_highlight_row">
        <div id="container">
            <div id="dynamic">
            	<h2 align="center">ვინ როდის დამუხტა</h2>
            	<div id="button_area">
	        		<input style="display:inline; " id="barcode_input" type="text" maxlength="15"/>
	        	</div>
                <table class="display" id="example">
                    <thead>
                        <tr id="datatable_header">
                            <th>ID</th>
                            <th style="width: 25%">შტრიხკოდი</th>
                            <th style="width: 25%">სამუშაო</th>
                            <th style="width: 25%">დრო</th>
                        </tr>
                    </thead>
                    <thead>
                        <tr class="search_header">
                            <th class="colum_hidden">
                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
                            </th>
                             <th>
                                <input type="text" name="search_Type" value="ფილტრი" class="search_init" />
                            </th>                           
                            <th>
                                <input type="text" name="search_Default" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_Checked" value="ფილტრი" class="search_init" />
                            </th>                          
                        </tr>
                    </thead>
                </table>
            </div>
            <div class="spacer">
            </div>
        </div>
    </div>
        
    <!-- jQuery Dialog -->
    <div id="add-edit-form" class="form-dialog" title="პრინტერების ნაწილები">
    	<!-- aJax -->
	</div>
	
</body>
</html>
